<template>
  <Swiper class="detail">
    <SwiperItem v-for="item in topImages" >
        <img :src="item" alt="" >
    </SwiperItem>
  </Swiper>
</template>

<script>
import {Swiper, SwiperItem} from "../../../components/common/swiper/index.js";
export default {
  name: "DetailSwiper",
  props: {
    topImages: {
      type: Array,
      default() {
        return []
      }
    }
  },
  components: {
    Swiper,
    SwiperItem
  },
  mounted() {

    // setTimeout(()=>{
    //   console.log(this.topImages)
    //   console.log('swiper数据')
    // },1000)

  }
}
</script>

<style scoped>
.detail{
  height: 300px;
  overflow: hidden;
}
</style>